//
// Created by lwj12 on 24-7-29.
//

#ifndef TEST_7_29_QUEUE_H
#define TEST_7_29_QUEUE_H
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef struct BinaryTreeNode BTNode;

typedef BTNode* DataType;

typedef struct QueueNode
{
    DataType val;
    struct QueueNode* next;
}QueueNode;

typedef struct Queue
{
    QueueNode* phead;
    QueueNode* ptail;
    size_t sz;
}Queue;

void QueueInit(Queue* q);

void QueuePush(Queue * q, DataType val);

void QueuePop(Queue * q);

void QueueDestroy(Queue *q);

#endif//TEST_7_29_QUEUE_H
